import instance from './http'
//商品列表
export const loginApi=(data)=>{
    return instance({
        url:'https://api-hmugo-web.itheima.net/api/public/v1/goods/search',
        method:'GET',
        params:{
            ...data
        }
    })
}
//商品详情
export const detailApi=(goods_id)=>{
    return instance({
        url:'https://api-hmugo-web.itheima.net/api/public/v1/goods/detail',
        method:'GET',
        params:{
            goods_id
        }
    })
}